//
//  XYJTravelsViewController.m
//  徙游记-01
//
//  Created by hcios on 2017/6/22.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJTravelsViewController.h"

#import "YJViewController.h"
#import "ZTViewController.h"
#import "SelectedView.h"

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_Height [UIScreen mainScreen].bounds.size.height

@interface XYJTravelsViewController ()

@end

@implementation XYJTravelsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"游记";
    NSArray *btnName = @[@"游记",@"专题"];
    
    YJViewController *YVC = [[YJViewController alloc] init];
    ZTViewController *ZVC = [[ZTViewController alloc] init];
    
    NSArray *VCArr = @[YVC,ZVC];
    
    SelectedView *selectedView = [[SelectedView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_Height) buttonName:btnName controllers:VCArr parentController:self];
    self.navigationController.navigationBarHidden = NO;
    [self.view addSubview:selectedView];
    // Do any additional setup after loading the view.
}



@end
